﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Xml.Serialization;

namespace Curves
{
	[XmlRoot("drawing")]
	// Types not staticly known
	[XmlInclude(typeof(CardinalCurve))]
	[XmlInclude(typeof(Circle))]
	[XmlInclude(typeof(ScarabaeusCurve))]
	public class Drawing
	{
		[XmlArray]								// Write as array		
		public List<Curve> Curves;

		public Drawing()
		{
			Curves = new List<Curve>();
		}
	}
}
